<?php
namespace frontend\controllers;

use Yii;
use yii\web\Controller;
use common\models\YmhSeo;
use common\models\Product;

class AboutController extends Controller {

    public function actionAbout() {
        $seo=YmhSeo::findOne(4);
        $view = Yii::$app->view;
        $view->params['layout_data']['menu'] = 'about';
        $view->params['layout_data']['seo'] = $seo;
        $pro_list = Product::getProCat();
        $view->params['layout_data']['pro_list'] = $pro_list;
        
        return $this->render("about");
    } 
    
    public function actionMAbout() {
        $this->layout = 'main_local';
        $seo=YmhSeo::findOne(4);
        $view = Yii::$app->view;
        $view->params['layout_data']['menu'] = 'about';
        $view->params['layout_data']['seo'] = $seo;
        $pro_list = Product::getProCat();
        $view->params['layout_data']['pro_list'] = $pro_list;
        
        return $this->render("m-about");
    } 

}

?>